package com.by.controller;

import com.by.common.bean.ResultBean;
import com.by.common.controller.BaseController;
import com.by.service.EnquiryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.hibernate.validator.constraints.Length;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(tags = "客户询价")
@RequestMapping("/v1")
@RestController
public class EnquiryController extends BaseController {
    @Autowired
    EnquiryService enquiryService;

    @ApiOperation("询价信息")
    @PostMapping("/queryprice")
    public ResultBean queryprice(){
        List list=enquiryService.queryprice();
        return success("信息",list);
    }




}
